<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>

</h:head>
<title>Cadastro de lojas</title>
<h:body style="background-color: transparent">>
	<h:form style="font-size: 12px">
		<center>
			<h:panelGrid>
				<p:panel id="CadastroDeLojas" header="Cadastro De Lojas:">
					<h:panelGrid columns="2">
						<h:outputText value="Razão Social:" />
						<p:inputText id="rs" value="#{lojaBean.loja.razaoSocial}" />
						<h:outputText value="Fantasia:" />
						<p:inputText id="fan" value="#{lojaBean.loja.fantasia}" />
						<h:outputText value="CNPJ:" />
						<p:inputMask id="cnpj" value="#{lojaBean.loja.cnpj}"
							mask="99.999.999./9999-99" />
						<h:outputText value="Endereço:" />
						<p:inputText id="end" value="#{lojaBean.loja.endereco.endereco}" />
						<h:outputText value="Complemento:" />
						<p:inputText id="com"
							value="#{lojaBean.loja.endereco.complemento}" />
						<h:outputText value="Bairro:" />
						<p:inputText id="bar" value="#{lojaBean.loja.endereco.bairro}" />
						<h:outputText value="Cidade:" />
						<p:inputText id="cid" value="#{lojaBean.loja.endereco.cidade}" />
						<h:outputText value="Estado:" />
						<p:selectOneMenu id="estado"
							value="#{lojaBean.loja.endereco.estado}" effect="fold">
							<f:selectItems value="#{constantes.estados}" />
						</p:selectOneMenu>
						<h:outputText value="Telefone:" />
						<p:inputMask id="tel1" value="#{lojaBean.loja.contato.telefone}"
							mask="(99)9999-9999" />
						<h:outputText value="Telefone:" />
						<p:inputMask id="tel2"
							value="#{lojaBean.loja.contato.telefoneAux}" mask="(99)9999-9999" />
						<h:outputText value="Email:" />
						<p:inputText id="email1" value="#{lojaBean.loja.contato.email}" />
						<h:outputText value="Email:" />
						<p:inputText id="email2" value="#{lojaBean.loja.contato.emailAux}" />
						<h:outputText value="Site: " />
						<p:inputText id="site" value="#{lojaBean.loja.contato.site}" />
					</h:panelGrid>
				</p:panel>
				<p:panel>
					<center>
						<h:commandButton value="Cadastrar"
							action="#{lojaBean.adicionarLoja}" />
						<h:commandButton value="Voltar" action="menu.xhtml" />
						<h:commandButton value="Listar Todas"
							action="lista-de-lojas.xhtml" />
					</center>
				</p:panel>
			</h:panelGrid>
		</center>
	</h:form>
</h:body>

</html>